package com.huawei.lynnbit.tool.cocos.processor.leaf;

import com.huawei.lynnbit.tool.cocos.config.game.GameConfig;
import com.huawei.lynnbit.tool.cocos.config.game.task.Task;
import com.huawei.lynnbit.tool.cocos.processor.Processor;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class LeafProcessor implements Processor {
    protected Task task;

    protected GameConfig gameConfig;

    @Override
    public void process() throws Exception {
        log.info("Processor in {}: {}", task.getStage(), task.getTaskInfo());
        doProcess();
    }

    protected abstract void doProcess() throws Exception;
}
